package com.redepronik.negosys.invfac.entity;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.GenerationType;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;
import javax.persistence.NamedQuery;
import javax.persistence.SequenceGenerator;
import javax.persistence.Table;

/**
 * The persistent class for the detalleguiaremision database table.
 * 
 */
@Entity
@Table(schema = "invfac", name = "detalleguiaremision")
@NamedQuery(name = "Detalleguiaremision.findAll", query = "SELECT d FROM Detalleguiaremision d")
public class Detalleguiaremision implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	@SequenceGenerator(allocationSize = 1, name = "DETALLEGUIAREMISION_DETALLEGUIAREMISIONID_GENERATOR", sequenceName = "INVFAC.DETALLEGUIAREMISION_DETALLEGUIAREMISIONID_SEQ")
	@GeneratedValue(strategy = GenerationType.SEQUENCE, generator = "DETALLEGUIAREMISION_DETALLEGUIAREMISIONID_GENERATOR")
	@Column(unique = true, nullable = false)
	private Integer detalleguiaremisionid;

	@Column(nullable = false)
	private Integer cantidad;

	@Column(nullable = false, length = 1000)
	private String descripcion;

	// bi-directional many-to-one association to Guiaremision
	@ManyToOne
	@JoinColumn(name = "guiaremisionid", nullable = false)
	private Guiaremision guiaremision;

	public Detalleguiaremision() {
	}

	public Integer getCantidad() {
		return this.cantidad;
	}

	public String getDescripcion() {
		return this.descripcion;
	}

	public Integer getDetalleguiaremisionid() {
		return this.detalleguiaremisionid;
	}

	public Guiaremision getGuiaremision() {
		return this.guiaremision;
	}

	public void setCantidad(Integer cantidad) {
		this.cantidad = cantidad;
	}

	public void setDescripcion(String descripcion) {
		this.descripcion = descripcion;
	}

	public void setDetalleguiaremisionid(Integer detalleguiaremisionid) {
		this.detalleguiaremisionid = detalleguiaremisionid;
	}

	public void setGuiaremision(Guiaremision guiaremision) {
		this.guiaremision = guiaremision;
	}

}